(rx): Work at compile time, not run time.
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 21 Mar 2004 15:33:47 +0000 (15:33 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 21 Mar 2004 15:33:47 +0000 (15:33 +0000)
lisp/emacs-lisp/rx.el

index 86673441fe772955e6089d78ad97ec9e1d61d635..55886e8b34fa1657e627759dc70fc7db6520bd85 100644 (file)
@@ -1,6 +1,6 @@
 ;;; rx.el --- sexp notation for regular expressions
 
-;; Copyright (C) 2001 Free Software Foundation, Inc.
+;; Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
 ;; Author: Gerd Moellmann <gerd@gnu.org>
 ;; Maintainer: FSF
@@ -799,14 +799,17 @@ CHAR
 `(repeat N M SEXP)'
      matches N to M occurrences of what SEXP matches.
 
+`(backref N)'
+     matches what was matched previously by submatch N.
+
 `(eval FORM)'
-      evaluate FORM and insert result.  If result is a string,
-      `regexp-quote' it.
+     evaluate FORM and insert result.  If result is a string,
+     `regexp-quote' it.
 
 `(regexp REGEXP)'
-      include REGEXP in string notation in the result."
+     include REGEXP in string notation in the result."
 
-  `(rx-to-string ',regexp))
+  (rx-to-string regexp))
 
 
 (provide 'rx)